import request from '@/utils/request'

let dev_url = process.env.VUE_APP_BASE_API
dev_url = dev_url+"/8201"

export default {
    hospSetPage(current, pageSize, query) {
        return request({
            url: `${dev_url}/admin/hosp/hospitalSet/hospSetPage/${current}/${pageSize}`,
            method: 'post',
            params: query
        })
    },
    removeHospSetById(id) {
        return request({
            url: `${dev_url}/admin/hosp/hospitalSet/${id}`,
            method: 'delete',
        })
    },
    saveHospSet(params) {
        return request({
            url: `${dev_url}/admin/hosp/hospitalSet/saveHospitalSet`,
            method: 'post',
            params: params
        })
    },
    getHospitalSet(id) {
        return request({
            url: `${dev_url}/admin/hosp/hospitalSet/getHospitalSet/${id}`,
            method: 'get',
        })
    },
    updateHospSet(params) {
        return request({
            url: `${dev_url}/admin/hosp/hospitalSet/updateHospSet`,
            method: 'post',
            data: params,
        })
    },
}